package com.hqhy.like.front.order.dao.persist.repository.impl;

import com.hqhy.like.front.order.dao.persist.mapper.DishesMapper;
import com.hqhy.like.front.order.dao.persist.repository.IDishesRepository;
import com.hqhy.like.front.order.pojo.vo.DishesStandardVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * 处理菜品数据的存储库实现类
 */
@Repository
@Slf4j
public class DishesRepositoryImpl implements IDishesRepository {

    @Autowired
    private DishesMapper dishesMapper;
    public DishesRepositoryImpl() {
        log.info("创建存储库对象：DishesRepositoryImpl");
    }
    @Override
    public DishesStandardVO getStandardById(Integer id) {
        log.debug("开始处理【根据桌台id查询菜品详情】的数据访问层，菜品id：{}", id);
        return dishesMapper.getStandardById(id);
    }
}
